package com.chinamsp.dydb.dbsource;

/**
 * 数据源 传输对象
 * @author shifenghu
 *
 */
public class DynamicDataSourceGene {
	
	/**
	 * 模块名称
	 */
    private String moduleName;
    /**
     * 是否主库
     */
    private boolean isMaster;
    private DynamicDataSourcePolicyType policy;

    public DynamicDataSourceGene(String moduleName, DynamicDataSourcePolicyType policy, boolean isMaster) {
        this.moduleName = moduleName;
        this.policy = policy;
        this.isMaster = isMaster;
    }

    public String getModuleName() {
    		return moduleName; 
    }
    
    public DynamicDataSourcePolicyType getPolicy() {
        return policy;
    }

	public boolean isMaster() {
		return isMaster;
	}
    
}
